<template>
  <div>
    <el-row gutter="10">
      <!-- 左边部分 -->
      <el-col :span="8">
        <div class="grid-content bg-purple">
          <div class="diva">
            <!-- 超级管理员 -->
            <div class="divaa">
              <div>
                <img
                  src="https://lin-xin.gitee.io/example/work/static/img/img.146655c9.jpg"
                  alt=""
                />
              </div>
              <div>
                <h3>admin</h3>
                <p>超级管理员</p>
              </div>
            </div>
            <hr />
            <!-- 登陆地点 -->
            <div class="divab">
              <div>
                <p>上次登陆时间：</p>
                <p>上次登陆地点：</p>
              </div>
              <div>
                <p>2019-11-01</p>
                <p>东莞</p>
              </div>
            </div>
            <!-- 下面统计 -->
            <div class="diva" style="padding: 20px">
              <div style="height: 20%">语言详情</div>
              <hr />
              Vue
              <el-progress :percentage="50"></el-progress>
              javaScript
              <el-progress :percentage="100" :format="format"></el-progress>
              CSS
              <el-progress :percentage="100" status="success"></el-progress>
              HTML
              <el-progress :percentage="100" status="warning"></el-progress>
            </div>
          </div>
        </div>
      </el-col>
      <!-- 右边 -->
      <el-col :span="16">
        <div class="grid-content bg-purple-light">
          <div class="divb">
            <div class="divba">
              <div class="divbb">
                <i class="el-icon-delete"></i>
              </div>
              <div class="divbc">
                <h2>1234</h2>
                <p>用户访问量</p>
              </div>
            </div>
            <div class="divba">
              <div class="divbb">
                <i class="el-icon-delete"></i>
              </div>
              <div class="divbc">
                <h2>1234</h2>
                <p>用户访问量</p>
              </div>
            </div>
            <div class="divba">
              <div class="divbb">
                <i class="el-icon-delete"></i>
              </div>
              <div class="divbc">
                <h2>1234</h2>
                <p>用户访问量</p>
              </div>
            </div>
          </div>
          <!-- 右下 -->
          <div class="divc">
            <div class="divca">
              <p>代办事项</p>
              <p>添加</p>
            </div>
            <hr />
            <!-- todolist -->
            <template>
              <el-table :data="tableData" style="width: 100%" type="selection">
                <el-table-column width="40">
                  <input type="checkbox">
                </el-table-column>
                <el-table-column prop="address"> </el-table-column>
              </el-table>
            </template>
          </div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "",
  components: {},
  props: [],
  data() {
    return {
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄",
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1516 弄",
        },
      ],
    };
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    format(percentage) {
      return percentage === 100 ? "满" : `${percentage}%`;
    },
  },
};
</script>

<style lang='scss' scoped>
.el-row {
  margin-bottom: 20px;
  &:last-child {
    margin-bottom: 0;
  }
}
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  // background: #99a9bf;
}
.bg-purple {
  // background: #d3dce6;
}
.bg-purple-light {
  // background: #e5e9f2;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
// 左边
.diva {
  box-sizing: border-box;
  width: 100%;
  height: 250px;
  background: white;
  > .divaa {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 16px;
    img {
      border-radius: 50%;
    }
  }
  > .divab {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
}
// 右边
.divb {
  display: flex;
  justify-content: space-between;
  height: 100px;
  > .divba {
    display: flex;
    align-items: center;
    width: 30%;
    height: 100%;
    background: white;
    > .divbb {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 60px;
      color: white;
      width: 40%;
      height: 100%;
      background: #2d8cf0;
    }
    > .divbc {
      width: 60%;
      height: 100%;
      text-align: center;
    }
  }
}
// 右下
.divc {
  margin-top: 23px;
  background: white;
  height: 390px;
  > .divca {
    box-sizing: border-box;
    padding: 0px 20px;
    display: flex;
    justify-content: space-between;
  }
}
</style>
